package dao

import (
	"disk/service/user/dao/service"
	"disk/utils/mysql"
	"gorm.io/gorm"
)

func CreateUser(userData mysql.UserList) *gorm.DB {
	db := service.Database.Session(&gorm.Session{NewDB: true})
	return db.Create(&userData)
}
